package com.kaifamiao.lambda;

public class AnonymousClassTest {

    public static void main(String[] args) {

        PrintService ps = new PrintService();

        Printer p = new Printer() {
            @Override
            public void print(String content) {
                System.out.println( "正在打印:" + content );
            }
        };

        ps.print( p , "五星出东方利中国" );
    }

}
